package com.yl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yl.model.dto.RoleDTO;
import com.yl.model.entity.RoleEntity;
import com.yl.model.vo.RoleVO;

import java.util.List;

public interface RoleService extends IService<RoleEntity> {

	List<RoleEntity> listRolesByUserId(Long userId);

    RoleVO info(Long id);

    Page<RoleVO> pageList(RoleDTO dto);

    RoleEntity saveObj(RoleEntity entity);

    RoleDTO updateObj(RoleDTO dto);

    Boolean del(Long[] ids);

    Long[] perm(Long roleId,Long[] menuIds);
}
